package com.lykj.modules.shop.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lykj.modules.shop.entity.StoreProduct;
import com.lykj.modules.shop.excel.StoreProductExcel;
import com.lykj.modules.shop.vo.StoreProductVO;
import com.lykj.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 平台商品表 服务类
 *
 * @author cxl
 * @since 2022-01-13
 */
public interface StoreProductService extends BaseService<StoreProduct> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param storeProduct
	 * @return
	 */
	IPage<StoreProductVO> selectStoreProductPage(IPage<StoreProductVO> page, StoreProductVO storeProduct);

	List<StoreProductExcel>  export(QueryWrapper<StoreProduct>  queryWrapper);

	int updateReserveAndSales(Long id,int count);
}
